
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>FAKE PHOTOS</title>
    <script src="/promptIsAllowed.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
    <script src="/main.js"></script>
    <style>
        .main-window {
            max-width: 1024px;
            min-width: 512px;
            margin: 128px auto 128px auto;
        }
        #image {
            font-size: 0px;
        }
        .generated-images {
            max-width: 512px;
        }
    </style>
</head>
<body>
    <div class="main-window">
        <p>
            <form action="/submit" method="post" enctype="multipart/form-data">
                <label for="text-input">请输入提示词：</label>
                <textarea id="text-input" name="prompt" rows="6" cols="50" style="width: 100%;"></textarea>
                <label for="width-input">请输入图像宽度：</label>
                <input type="number" id="width-input" name="width" min="512" required value="512"/><br>
                <label for="height-input">请输入图像高度：</label>
                <input type="number" id="height-input" name="height" min="512" required value="512"/><br>
                <label for="steps-input">请输入步数：</label>
                <input type="number" id="steps-input" name="height" min="1" required value="1"/><br>
                <label for="seed-input">请输入随机种子（小于0随机产生）：</label>
                <input type="number" id="seed-input" name="height" required value="-1"/>
            </form>
        </p>
        <div class="row-btn">
            <button id="submit-data" type="submit">直接提交（只支持英文）</button>
            &nbsp;
            &nbsp;
            &nbsp;
            &nbsp;
            &nbsp;
            &nbsp;
            <button id="submit-data-zh" type="submit">提交（RWKV会转述为英文）</button>
        </div>
        <pre id="queue-info"></pre>
        <p id="image"></p>
    </div>
</body>
</html>
